import java.io.File;

public class MessageStoreConfig {
    // The root directory in which the log data is kept
    private String storePathRootDir = System.getProperty("user.home") + File.separator + "mymessage" + File.separator
            + "store";

    // The directory in which the commitlog is kept
    private String storePathCommitLog = storePathRootDir + File.separator + "commitlog";

    // index path
    private String indexPathRootDir = storePathRootDir + File.separator + "index";

    // CommitLog file size,default is 512K
    private int mapedFileSizeCommitLog = 1024 * 512;

    // ConsumeQueue file size,default is 30W
    private int mapedFileSizeConsumeQueue = 10 * MappedFile.OS_PAGE_SIZE * TopicIndexLog.CQ_STORE_UNIT_SIZE;

    //
    private int mapedFileSizeConsumerPos = 1024;

    // index path
    private String consumerPosPathRootDir = storePathRootDir + File.separator + "consumer";

    public int getMapedFileSizeCommitLog() {
        return mapedFileSizeCommitLog;
    }

    public void setMapedFileSizeCommitLog(int mapedFileSizeCommitLog) {
        this.mapedFileSizeCommitLog = mapedFileSizeCommitLog;
    }

    public String getIndexPathRootDir() {
        return indexPathRootDir;
    }

    public void setIndexPathRootDir(String indexPathRootDir) {
        this.indexPathRootDir = indexPathRootDir;
    }

    public String getStorePathCommitLog() {
        return storePathCommitLog;
    }

    public void setStorePathCommitLog(String storePathCommitLog) {
        this.storePathCommitLog = storePathCommitLog;
    }

    public String getStorePathRootDir() {
        return storePathRootDir;
    }

    public void setStorePathRootDir(String storePathRootDir) {
        this.storePathRootDir = storePathRootDir;
    }

    public int getMapedFileSizeConsumeQueue() {
        return mapedFileSizeConsumeQueue;
    }

    public void setMapedFileSizeConsumeQueue(int mapedFileSizeConsumeQueue) {
        this.mapedFileSizeConsumeQueue = mapedFileSizeConsumeQueue;
    }

    public int getMapedFileSizeConsumerPos() {
        return mapedFileSizeConsumerPos;
    }

    public void setMapedFileSizeConsumerPos(int mapedFileSizeConsumerPos) {
        this.mapedFileSizeConsumerPos = mapedFileSizeConsumerPos;
    }

    public String getConsumerPosPathRootDir() {
        return consumerPosPathRootDir;
    }

    public void setConsumerPosPathRootDir(String consumerPosPathRootDir) {
        this.consumerPosPathRootDir = consumerPosPathRootDir;
    }

}
